package org.erp.procurement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.erp.common.basic.BaseEntity;

/**
 * 打款表实体
 *
 * @author libin
 * @version 1.0
 * @description: 打款表实体
 * @date 2025/11/10 11:20
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "procurement_payment", autoResultMap = true)
public class ProcurementPayment extends BaseEntity {
    /**
     * 自增id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 流水单号
     */
    private String paymentNo;
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 售卖人id
     */
    private Long sellId;
    /**
     * 租户id
     */
    private Long tenantId;
    /**
     * 支付金额
     */
    private Integer amount;
    /**
     * 打款渠道1-线上2-线下
     */
    private Integer channel;
    /**
     * 支付状态 1打款成功 2打款失败
     */
    private Integer status;
    /**
     * 失败原因
     */
    private String failedMessage;
}
